package org.ch00.test07.demo03;

/**
 * @author ZQX
 * @date 2025-03-05
 */
public class MainTest02 {
    public static void main(String[] args) {
        MuDoor door1 = new MuDoor();
        TieDoor door2 = new TieDoor();
        FangDaoDoor door3 = new FangDaoDoor();

        Car bmw = new Car();

        XiaoTou zs = new XiaoTou();
        zs.touDao(door3);

        // bmw不是门
        // zs.touDao(bmw);
    }
}
